<?php
	include "db.php";
	$table_name = $_GET['table_name'];
	$id = $_GET['id'];
	$q = "delete from $table_name where id = '$id'";
	$rs = mysql_query($q);
	$go = $_SERVER['HTTP_REFERER'];
	header("location:$go");
?>
